package com.hlz.rabbit.mq.ack;

import com.hlz.rabbit.mq.util.RabbitMqUtils;
import com.rabbitmq.client.Channel;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

/**
 * @author Hongliang Zhu
 * @create 2022-11-25 22:04
 */
public class AckProducer {
    public static void main(String[] args) throws IOException, TimeoutException {

        Channel channel = RabbitMqUtils.getChannel();
        channel.queueDeclare("ack_queue", false, false, false, null);

        RabbitMqUtils.console(channel, "", "ack_queue");


    }
}
